﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace Handrise.CDCable.Business
{
    /// <summary>
    /// GPS轨迹跟踪
    /// </summary>
    [Serializable]
    [EntityMapping(UploadListName = "gpsCurList", UploadEntityName = "GpsCurData")]
    public class GPSTrace
    {
        [EntityMapping(UploadColumnName = "id")]
        public string GPSTraceID { get; set; }

        /// <summary>
        /// 采集时间
        /// </summary>
        [EntityMapping(UploadColumnName = "dtime")]
        public DateTime? CollectDateTime { get; set; }

        /// <summary>
        /// 经度
        /// </summary>
        [EntityMapping(UploadColumnName = "gpsx")]
        public double? Longitude { get; set; }

        /// <summary>
        /// 纬度
        /// </summary>
        [EntityMapping(UploadColumnName = "gpsy")]
        public double? Latitude { get; set; }

        /// <summary>
        /// 和上一个点的距离
        /// </summary>
        [EntityMapping(UploadColumnName = "distance")]
        public double? Distance { get; set; }

        /// <summary>
        /// 设备位置：GPS（地上）、WIFI（地下）
        /// </summary>
        [EntityMapping(UploadColumnName = "coord")]
        public string DeviceLocate { get; set; }

        /// <summary>
        /// 采集类型：GPS,ScanConfirm,GPSConfirm
        /// </summary>
        [EntityMapping(UploadColumnName = "devlocate")]
        public string CollectType { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        [EntityMapping(UploadColumnName = "gpsid")]
        public string UserName { get; set; }

        /// <summary>
        /// 上报状态
        /// </summary>
        public string ReportState { get; set; }

        /// <summary>
        /// 确认到位时，对应的设备编码
        /// </summary>
        [EntityMapping(UploadColumnName = "devcode")]
        public string DeviceCode { get; set; }
    }
}
